package cosc617_blackteam;

/**
 * @author Laura
 * Command to get all orders in the queue of specified
 * InfoAggregator
 *
 */
public class CmdGetOrders implements I_Command {
	private InfoAggregator infoagg;
	
	public CmdGetOrders(InfoAggregator infoagg){
		this.infoagg = infoagg;
	}
	/* (non-Javadoc)
	 * @see cosc617_blackteam.I_Command#execute()
	 * returns an OrderCollection of all orders in the queue
	 */
	@Override
	public Object execute() {
		return infoagg.getOrders();
	}

}
